package com.ocom.common.entity.access;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "attendance_rules")
public class EntityAttendanceRules implements Serializable {

  private static final long serialVersionUID = 6679889788746328120L;
  @TableId(value = "id", type = IdType.AUTO)
  public Long id;
  public Long comId;
  public Integer attendanceType;
  public String ruleName;
  public String areaIds;
  public Integer zoneNo;
  public String taskTime;
  //1签到，2签退
  public Integer timeType;
  public String startTime;
  public String endTime;
  public Integer delay;
  public Integer absence;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  public Date createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  public Date updateTime;
}
